package com.copro.chemdb.areas;

import java.sql.ResultSet;
import java.sql.SQLException;

public class City {

	private int id;
	private String name;
	private String provinceId;

	public City(ResultSet rs) throws SQLException {
		this.id = rs.getInt("id");
		this.name = rs.getString("name");
		this.provinceId = rs.getString("provinceId");
	}

	public City() {

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

}
